#pragma once

#include "Framework/Application.h"

#include "StartUp.h"

int main(int argc, char* argv[])
{
    auto App=NewObject<RApplication>();
        
    SApplicationArgument Arguments;
    Arguments.ExecutablePath=SPath(argv[0]);
    Arguments.FallBackFont=Arguments.ExecutablePath.Parent()/U"Content"/U"EngineEditor2"/U"Fonts"/U"SourceHanSansHWSC-Bold.otf";
    Arguments.DefaultFont=Arguments.FallBackFont;
    Arguments.WorkThreadNum=4;
    
    App->Initialize(Arguments);

    WHE::RunEditor();

    return App->Run();
}